Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: adding -k to missing parts #840

Merged
merged 6 commits into from
Oct 14, 2024
Merged

docs: adding -k to missing parts #840

merged 6 commits into from
Oct 14, 2024

Conversation

kaplanelad
Copy link
Contributor

related issue: #828

@kaplanelad kaplanelad self-assigned this Oct 14, 2024
@@ -320,7 +320,7 @@ A model in Loco represents data *and* functionality. Typically the data is store
Let's create a new model called `Article`:

```sh
$ cargo loco generate model article title:string content:text
$ cargo loco generate model article title:string content:text -k api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do --api instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we support both options:

  • --api, --htmx, --html
  • --kind | -k [api|html|htmx]
    but this is my bad; this flag is under scaffold only, not on the model generator. fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so let's use --api since we generally want to move from -k KIND to the specific flags

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in all referances

@jondot jondot merged commit aac4b9e into master Oct 14, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants